This paper mainly from the following several convenient to explain file archiving and compression, while comparing the compression ratios and characteristics of several different compression methods.
File Archive command tar,tar.gz source
Now most of the virtual host has automatic backup function, but sometimes can not rely on the host is not, if the host is black, even backup files can not be restored, then cry miserably, so that people are inferior to rely on their own. Today 111cn.
1. To get the package, you can use wget, Ubuntu can use apt-get source to get the codewget is a simple and powerful free software that downloads on the web and supports the HTTP,HTTPS,FTP protocol.# command Format wget [Options] [URL]features :
This example describes how Python3 implements the archive of all files and subdirectories in the file tree to a tar compressed file. Share to everyone for your reference. The implementation method is as follows:
# Archive all files and
Linux replicates all files in the specified directory to another directoryCopy all files in the specified directory to another directoryReplication of files and directories is often used. The command for replication under Linux is CP.Suppose the
Tar commandcommand function to compress and decompress filescommand format tar[necessary parameters [select parameters] [file]Tar Packaging tools -F # #指定生成包的名字, it is recommended that-F be written separately as a parameter --delete
The function of the Copy command is to copy the given file or directory to another file or directory, which is as powerful as the copy command under MSDOS.Syntax: CP [option] source file or directory destination file or directoryNote: This command
I. Renaming files and folders under Linux and CentOSMv:move with the move File command, because the Linux system does not have a dedicated rename command.Basic format:Move file: MV file name move destination file nameRename file: MV FileName
#文件夹与文件操作 pwd LS CD mkdir CP MV RM file/*{{{*/I. PWD displays the absolute path of the current working folder (the path represented by/to the starting point)Eg:pwd#选项-P Show link file pathTwo. ls display folder under Files and foldersAbility to take
This document incrementally updates the cumulative
1. Wildcard characters:
Parameters
meaning
*
Represents any number of characters in a file name, or it can have no
LS te* find files
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.